package com.heatup.apt.model.channer;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.heatup.apt.model.user.UserInfo;

/**
 * 合作用户的渠道明细
 * @author jixiangyun
 * 2016年11月23日 下午4:25:09
 */
@TableName("channer_detailed")
public class ChannerDetailed implements Serializable  {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	 /** 主键 */
    @TableId(type = IdType.AUTO)
	private int id;
    @TableField(value = "channer_id")
	private int channerId;
    @TableField(value = "openid")
	private String openid;
    @TableField(value = "created_time")
	private Date createdTime;
	@TableField(exist=false)
	private UserInfo userInfo;
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	/**
	 * 关联的渠道id
	 * 
	 * @return
	 */
	public int getChannerId() {
		return channerId;
	}

	/**
	 * 关联的渠道id
	 * 
	 * @return
	 */
	public void setChannerId(int channerId) {
		this.channerId = channerId;
	}

	/**
	 * 用户的opendid
	 * 
	 * @return
	 */
	public String getOpenid() {
		return openid;
	}

	/**
	 * 用户的opendid
	 * 
	 * @return
	 */
	public void setOpenid(String openid) {
		this.openid = openid;
	}

	/**
	 * 创建时间
	 * 
	 * @return
	 */
	public Date getCreatedTime() {
		return createdTime;
	}

	/**
	 * 创建时间
	 * 
	 * @return
	 */
	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}
	
	/**
	 * 用户信息
	 * @return
	 */
	public UserInfo getUserInfo() {
		return userInfo;
	}
	
	/**
	 * 用户信息
	 * @return
	 */
	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}

		
}
